package com.ncjzw.ms.vo;

import java.util.Date;

import com.ncjzw.ms.po.Marticle;

/**
 * Marticle entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class MarticleVO implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer tid;
	private Integer mid;
	private String mname;
	private String title;
	private String content;
	private Integer num;
	private Date ttime;
	private String remark1;
	private String remark2;
	private String remark3;
	private String remark4;
	private String remark5;

	// Constructors

	/** default constructor */
	public MarticleVO() {
	}

	/** full constructor */
	public MarticleVO(Integer mid, String title, String content, Integer num,
			Date ttime, String remark1, String remark2, String remark3,
			String remark4, String remark5) {
		this.mid = mid;
		this.title = title;
		this.content = content;
		this.num = num;
		this.ttime = ttime;
		this.remark1 = remark1;
		this.remark2 = remark2;
		this.remark3 = remark3;
		this.remark4 = remark4;
		this.remark5 = remark5;
	}
	
	/** default constructor */
	public MarticleVO(Marticle ma) {
		this.tid = ma.getTid();
		this.mid = ma.getMember().getMid();
		this.mname = ma.getMember().getRealname();
		this.title = ma.getTitle();
		this.content = ma.getContent();
		this.num = ma.getNum();
		this.ttime = ma.getTtime();
		this. remark1 = ma.getMember().getRealname();
		this.remark2 =  ma.getMember().getUname();
		this.remark3 = ma.getMember().getNickname();
		this.remark4 = ma.getRemark4();
		this.remark5 = ma.getRemark5();
		
	}

	// Property accessors

	public Integer getTid() {
		return this.tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getNum() {
		return this.num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Date getTtime() {
		return this.ttime;
	}

	public void setTtime(Date ttime) {
		this.ttime = ttime;
	}

	public String getRemark1() {
		return this.remark1;
	}

	public void setRemark1(String remark1) {
		this.remark1 = remark1;
	}

	public String getRemark2() {
		return this.remark2;
	}

	public void setRemark2(String remark2) {
		this.remark2 = remark2;
	}

	public String getRemark3() {
		return this.remark3;
	}

	public void setRemark3(String remark3) {
		this.remark3 = remark3;
	}

	public String getRemark4() {
		return this.remark4;
	}

	public void setRemark4(String remark4) {
		this.remark4 = remark4;
	}

	public String getRemark5() {
		return this.remark5;
	}

	public void setRemark5(String remark5) {
		this.remark5 = remark5;
	}

	public Integer getMid() {
		return mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public String getMname() {
		return mname;
	}

	public void setMname(String mname) {
		this.mname = mname;
	}

}